* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    color: #e0e6ed;
    overflow: hidden;
}

.container {
    display: grid;
    grid-template-columns: 300px 1fr 350px;
    grid-template-rows: auto 1fr;
    height: 100vh;
    gap: 10px;
    padding: 10px;
}

/* 头部样式 */
header {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1) 0%, rgba(138, 43, 226, 0.1) 100%);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    color: #00ffff;
    box-shadow: 0 8px 32px rgba(0, 255, 255, 0.1);
}

header h1 {
    font-size: 28px;
    margin-bottom: 8px;
    font-weight: 600;
}

header p {
    font-size: 14px;
    opacity: 0.9;
}

/* 控制面板模块化样式 */
.control-panel {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.05) 0%, rgba(138, 43, 226, 0.05) 100%);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 20px;
    overflow: hidden;
    max-height: calc(100vh - 120px);
    box-shadow: 0 8px 32px rgba(0, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
}

/* 面板头部 */
.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px 15px;
    border-bottom: 1px solid rgba(0, 255, 255, 0.15);
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.08) 0%, rgba(138, 43, 226, 0.08) 100%);
}

.panel-header h3 {
    color: #00ffff;
    font-size: 22px;
    margin: 0;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.panel-actions {
    display: flex;
    gap: 10px;
}

.panel-toggle {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.2) 0%, rgba(138, 43, 226, 0.2) 100%);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
    width: 32px;
    height: 32px;
    color: #00ffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 18px;
    font-weight: bold;
}

.panel-toggle:hover {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.3) 0%, rgba(138, 43, 226, 0.3) 100%);
    transform: scale(1.1);
}

.panel-toggle.collapsed .toggle-icon {
    transform: rotate(90deg);
}

/* 面板内容 */
.panel-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px 25px;
    transition: all 0.3s ease;
}

.panel-content.collapsed {
    max-height: 0;
    padding: 0 25px;
    overflow: hidden;
}

/* 控制区块 */
.control-section {
    margin-bottom: 25px;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.03) 0%, rgba(138, 43, 226, 0.03) 100%);
    border-radius: 15px;
    padding: 18px;
    border: 1px solid rgba(0, 255, 255, 0.15);
    box-shadow: inset 0 1px 3px rgba(0, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.control-section:hover {
    border-color: rgba(0, 255, 255, 0.25);
    box-shadow: inset 0 1px 3px rgba(0, 255, 255, 0.15), 0 2px 8px rgba(0, 255, 255, 0.1);
}

.control-section h4 {
    color: #00ffff;
    margin-bottom: 15px;
    font-size: 16px;
    border-bottom: 2px solid rgba(0, 255, 255, 0.3);
    padding-bottom: 8px;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 标签按钮优化 */
.label-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.label-btn {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1) 0%, rgba(138, 43, 226, 0.1) 100%);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 12px;
    padding: 14px 18px;
    color: #e0e6ed;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.label-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.label-btn:hover::before {
    left: 100%;
}

.label-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 255, 0.3);
    border-color: rgba(0, 255, 255, 0.5);
}

.label-btn.active {
    background: linear-gradient(135deg, #00ffff 0%, #8a2be2 100%);
    color: #0f0f23;
    border-color: rgba(0, 255, 255, 0.8);
    box-shadow: 0 6px 20px rgba(0, 255, 255, 0.4);
}

.btn-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

.css2d-indicator {
    background: linear-gradient(135deg, #00ff7f 0%, #32cd32 100%);
}

.css3d-indicator {
    background: linear-gradient(135deg, #00bfff 0%, #1e90ff 100%);
}

.css3dsprite-indicator {
    background: linear-gradient(135deg, #ffa500 0%, #ff8c00 100%);
}

.sprite-indicator {
    background: linear-gradient(135deg, #da70d6 0%, #9370db 50%, #8a2be2 100%);
}

.all-indicator {
    background: linear-gradient(135deg, #ff1493 0%, #9932cc 100%);
}

/* 图例优化 */
.label-legend {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.legend-item:hover {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.05) 0%, rgba(138, 43, 226, 0.05) 100%);
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

.legend-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.legend-title {
    font-weight: 600;
    font-size: 13px;
    color: #e0e6ed;
}

.legend-desc {
    font-size: 11px;
    color: rgba(224, 230, 237, 0.7);
}

/* 控制组优化 */
.control-group {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* 切换开关样式 */
.toggle-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    color: #e0e6ed;
}

.toggle-slider {
    position: relative;
    width: 44px;
    height: 24px;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.2) 0%, rgba(138, 43, 226, 0.2) 100%);
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #00ffff 0%, #8a2be2 100%);
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-label input:checked + .toggle-slider {
    background: linear-gradient(135deg, #00ffff 0%, #8a2be2 100%);
}

.toggle-label input:checked + .toggle-slider::before {
    transform: translateX(20px);
    background: #ffffff;
}

.toggle-label input {
    display: none;
}

/* 范围控制样式 */
.range-control {
    gap: 10px;
}

.range-label {
    color: rgba(224, 230, 237, 0.9);
    font-size: 14px;
    font-weight: 500;
}

.range-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.range-wrapper input[type="range"] {
    flex: 1;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.2) 0%, rgba(138, 43, 226, 0.2) 100%);
    outline: none;
    -webkit-appearance: none;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.range-wrapper input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00ffff 0%, #8a2be2 100%);
    cursor: pointer;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.range-wrapper input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(0, 255, 255, 0.5);
}

.range-value {
    min-width: 50px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #00ffff;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1) 0%, rgba(138, 43, 226, 0.1) 100%);
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid rgba(0, 255, 255, 0.3);
}

/* 颜色控制样式 */
.color-control {
    gap: 10px;
}

.color-label {
    color: rgba(224, 230, 237, 0.9);
    font-size: 14px;
    font-weight: 500;
}

.color-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.color-wrapper input[type="color"] {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: none;
    overflow: hidden;
}

.color-wrapper input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
}

.color-wrapper input[type="color"]::-webkit-color-swatch {
    border: none;
    border-radius: 6px;
}

.color-preview {
    flex: 1;
    height: 20px;
    border-radius: 6px;
    border: 1px solid rgba(0, 255, 255, 0.3);
    background: var(--preview-color, #ffffff);
}

/* 复选框样式优化 */
.label-visibility-controls {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.visibility-item {
    display: flex;
    align-items: center;
}

.visibility-item input[type="checkbox"] {
    display: none;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: #e0e6ed;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.checkbox-label:hover {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.05) 0%, rgba(138, 43, 226, 0.05) 100%);
    border-color: rgba(0, 255, 255, 0.2);
}

.checkbox-indicator {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    transition: all 0.3s ease;
}

.visibility-item input:checked + .checkbox-label .checkbox-indicator::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 10px;
    font-weight: bold;
}

.visibility-item input:checked + .checkbox-label {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1) 0%, rgba(138, 43, 226, 0.1) 100%);
    border-color: rgba(0, 255, 255, 0.4);
}

/* 性能监控优化 */
.performance-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.performance-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.05) 0%, rgba(138, 43, 226, 0.05) 100%);
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 255, 0.15);
}

.performance-label {
    font-size: 13px;
    color: rgba(224, 230, 237, 0.8);
    font-weight: 500;
}

.performance-value {
    font-size: 14px;
    font-weight: 600;
    color: #00ffff;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .control-panel {
        max-height: calc(100vh - 100px);
    }
    
    .label-visibility-controls {
        grid-template-columns: 1fr;
    }
}

/* 滚动条样式 */
.panel-content::-webkit-scrollbar {
    width: 6px;
}

.panel-content::-webkit-scrollbar-track {
    background: rgba(0, 255, 255, 0.1);
    border-radius: 3px;
}

.panel-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #00ffff 0%, #8a2be2 100%);
    border-radius: 3px;
}

.panel-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #00e6e6 0%, #7a1fcf 100%);
}

.canvas-container {
    flex: 1;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.05) 0%, rgba(138, 43, 226, 0.05) 100%);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 255, 255, 0.1);
}

#canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* 右侧信息面板 */
.info-panel {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.05) 0%, rgba(138, 43, 226, 0.05) 100%);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 20px;
    padding: 25px;
    overflow-y: auto;
    max-height: calc(100vh - 120px);
    box-shadow: 0 8px 32px rgba(0, 255, 255, 0.1);
}

.info-panel h3 {
    color: #00ffff;
    margin-bottom: 20px;
    font-size: 22px;
    text-align: center;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.info-panel h4 {
    color: #00ffff;
    margin-bottom: 15px;
    font-size: 16px;
    border-bottom: 2px solid rgba(0, 255, 255, 0.3);
    padding-bottom: 8px;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
}

.info-panel h5 {
    color: #ff1493;
    margin-bottom: 8px;
    font-size: 14px;
    text-shadow: 0 0 5px rgba(255, 20, 147, 0.3);
}

/* 当前标签信息 */
.current-label-info {
    margin-bottom: 25px;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.03) 0%, rgba(138, 43, 226, 0.03) 100%);
    border-radius: 15px;
    padding: 18px;
    border: 1px solid rgba(0, 255, 255, 0.15);
    box-shadow: inset 0 1px 3px rgba(0, 255, 255, 0.1);
}

#current-label-details p {
    color: rgba(224, 230, 237, 0.9);
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
}

/* 技术对比表格 */
.tech-comparison {
    margin-bottom: 25px;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.03) 0%, rgba(138, 43, 226, 0.03) 100%);
    border-radius: 15px;
    padding: 18px;
    border: 1px solid rgba(0, 255, 255, 0.15);
    box-shadow: inset 0 1px 3px rgba(0, 255, 255, 0.1);
    overflow: visible;
    max-height: none;
}

.comparison-table {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr 1fr;
    gap: 1px;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1) 0%, rgba(138, 43, 226, 0.1) 100%);
    border-radius: 12px;
    overflow: visible;
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.1);
    max-height: none;
}

.comparison-row {
    display: contents;
}

.comparison-row > div {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.02) 0%, rgba(138, 43, 226, 0.02) 100%);
    padding: 10px 8px;
    text-align: center;
    font-size: 11px;
    color: rgba(224, 230, 237, 0.9);
    font-weight: 500;
    word-wrap: break-word;
    min-height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comparison-row.header > div {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.2) 0%, rgba(255, 20, 147, 0.2) 100%);
    font-weight: bold;
    color: #00ffff;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
}

.feature {
    text-align: left !important;
    font-weight: 500;
}

/* 属性面板 */
.properties-panel {
    margin-bottom: 25px;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.03) 0%, rgba(138, 43, 226, 0.03) 100%);
    border-radius: 15px;
    padding: 18px;
    border: 1px solid rgba(0, 255, 255, 0.15);
    box-shadow: inset 0 1px 3px rgba(0, 255, 255, 0.1);
}

.property-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.property-name {
    color: rgba(224, 230, 237, 0.8);
    font-size: 14px;
    font-weight: 500;
}

.property-value {
    color: #00ffaa;
    font-size: 14px;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 5px rgba(0, 255, 170, 0.3);
}

/* 标签特性详情 */
.label-features {
    margin-bottom: 25px;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.03) 0%, rgba(138, 43, 226, 0.03) 100%);
    border-radius: 15px;
    padding: 18px;
    border: 1px solid rgba(0, 255, 255, 0.15);
    box-shadow: inset 0 1px 3px rgba(0, 255, 255, 0.1);
}

.feature-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.feature-tag {
    background: linear-gradient(135deg, #00ff7f 0%, #32cd32 100%);
    color: #0f0f23;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: bold;
    border: 1px solid rgba(0, 255, 127, 0.3);
    box-shadow: 0 3px 6px rgba(0, 255, 127, 0.3);
}

.feature-description p {
    color: rgba(224, 230, 237, 0.8);
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
    font-weight: 500;
}

/* 使用场景建议 */
.usage-suggestions {
    margin-bottom: 25px;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.03) 0%, rgba(138, 43, 226, 0.03) 100%);
    border-radius: 15px;
    padding: 18px;
    border: 1px solid rgba(0, 255, 255, 0.15);
    box-shadow: inset 0 1px 3px rgba(0, 255, 255, 0.1);
}

.scenario-item {
    margin-bottom: 15px;
    padding: 15px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 255, 255, 0.02) 100%);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.scenario-item:first-child {
    border-left: 4px solid #00ff7f;
    box-shadow: 0 2px 8px rgba(0, 255, 127, 0.2);
}

.scenario-item:last-child {
    border-left: 4px solid #ff1493;
    box-shadow: 0 2px 8px rgba(255, 20, 147, 0.2);
}

.scenario-item h5 {
    margin: 0 0 8px 0;
    color: #00ffff;
    font-size: 14px;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
}

.scenario-item ul {
    margin: 0;
    padding-left: 20px;
    color: rgba(224, 230, 237, 0.8);
    font-size: 12px;
    line-height: 1.4;
    font-weight: 500;
}

.scenario-item li {
    margin-bottom: 4px;
}

/* 代码使用案例 */
.code-examples {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.03) 0%, rgba(138, 43, 226, 0.03) 100%);
    border-radius: 15px;
    padding: 18px;
    border: 1px solid rgba(0, 255, 255, 0.15);
    box-shadow: inset 0 1px 3px rgba(0, 255, 255, 0.1);
}

.code-section {
    margin-bottom: 20px;
}

.code-section:last-child {
    margin-bottom: 0;
}

.code-section h5 {
    margin: 0 0 8px 0;
    color: #00ffaa;
    font-size: 13px;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(0, 255, 170, 0.3);
}

.code-section pre {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 255, 255, 0.02) 100%);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 8px;
    padding: 15px;
    margin: 0;
    overflow-x: auto;
    font-size: 11px;
    line-height: 1.4;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.code-section code {
    color: rgba(224, 230, 237, 0.9);
    font-family: 'Courier New', Monaco, monospace;
    white-space: pre;
    text-shadow: 0 0 3px rgba(0, 255, 255, 0.1);
}

.usage-item {
    margin-bottom: 15px;
    padding: 15px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 255, 255, 0.02) 100%);
    border-radius: 12px;
    border-left: 4px solid #ff1493;
    box-shadow: 0 2px 8px rgba(255, 20, 147, 0.2);
}

.usage-item p {
    color: rgba(224, 230, 237, 0.8);
    font-size: 13px;
    line-height: 1.4;
    margin-top: 5px;
    font-weight: 500;
}

/* 标签样式 - 增强区分度 */
.css2d-label {
    background: linear-gradient(135deg, #00ff7f 0%, #32cd32 100%);
    color: #0f0f23;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: bold;
    border: 2px solid #00ff7f;
    box-shadow: 0 4px 15px rgba(0, 255, 127, 0.5);
    backdrop-filter: blur(8px);
    pointer-events: auto;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.css2d-label::before {
    content: "2D";
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff1493;
    color: white;
    font-size: 10px;
    padding: 3px 7px;
    border-radius: 12px;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(255, 20, 147, 0.4);
}

.css2d-label:hover {
    background: linear-gradient(135deg, #32cd32 0%, #00ff7f 100%);
    transform: scale(1.1) rotate(2deg);
    box-shadow: 0 6px 20px rgba(0, 255, 127, 0.7);
}

.css3d-label {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.15) 0%, rgba(138, 43, 226, 0.15) 100%);
    color: #00ffff;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    border: 1px solid rgba(0, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.2), inset 0 1px 3px rgba(0, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    pointer-events: auto;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.5);
    overflow: hidden;
}

.css3d-label::before {
    content: "3D";
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff1493;
    color: white;
    font-size: 10px;
    padding: 3px 7px;
    border-radius: 12px;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(255, 20, 147, 0.4);
}

.css3d-label:hover {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.25) 0%, rgba(138, 43, 226, 0.25) 100%);
    transform: scale(1.1) rotate(2deg);
    box-shadow: 0 6px 25px rgba(0, 255, 255, 0.4), inset 0 1px 3px rgba(0, 255, 255, 0.2);
    border-color: rgba(0, 255, 255, 0.5);
}

.css3dsprite-label {
    background: linear-gradient(135deg, rgba(255, 20, 147, 0.15) 0%, rgba(138, 43, 226, 0.15) 100%);
    color: #ff1493;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    border: 1px solid rgba(255, 20, 147, 0.3);
    box-shadow: 0 4px 15px rgba(255, 20, 147, 0.2), inset 0 1px 3px rgba(255, 20, 147, 0.1);
    backdrop-filter: blur(15px);
    pointer-events: auto;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    text-shadow: 0 0 8px rgba(255, 20, 147, 0.5);
    overflow: hidden;
}

.css3dsprite-label::before {
    content: "SPRITE";
    position: absolute;
    top: -8px;
    right: -8px;
    background: #00ffff;
    color: #0f0f23;
    font-size: 9px;
    padding: 3px 6px;
    border-radius: 10px;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(0, 255, 255, 0.4);
}

.css3dsprite-label:hover {
    background: linear-gradient(135deg, rgba(255, 20, 147, 0.25) 0%, rgba(138, 43, 226, 0.25) 100%);
    transform: scale(1.1) rotate(2deg);
    box-shadow: 0 6px 25px rgba(255, 20, 147, 0.4), inset 0 1px 3px rgba(255, 20, 147, 0.2);
    border-color: rgba(255, 20, 147, 0.5);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .container {
        grid-template-columns: 280px 1fr 320px;
    }
}

@media (max-width: 1000px) {
    .container {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto 1fr auto;
    }
    
    .control-panel,
    .info-panel {
        max-height: 300px;
    }
}

/* 标签显示控制样式 */
.label-visibility-controls {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.visibility-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.05) 0%, rgba(138, 43, 226, 0.05) 100%);
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.visibility-item:hover {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1) 0%, rgba(138, 43, 226, 0.1) 100%);
    border-color: rgba(0, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 255, 255, 0.1);
}

.visibility-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #00ffff;
    cursor: pointer;
}

.visibility-item label {
    color: rgba(224, 230, 237, 0.9);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    margin: 0;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1) 0%, rgba(138, 43, 226, 0.1) 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.6) 0%, rgba(255, 20, 147, 0.6) 100%);
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 255, 255, 0.2);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.8) 0%, rgba(255, 20, 147, 0.8) 100%);
    box-shadow: 0 3px 6px rgba(0, 255, 255, 0.3);
}